package com.example;

import de.greenrobot.daogenerator.DaoGenerator;
import de.greenrobot.daogenerator.Entity;
import de.greenrobot.daogenerator.Schema;

/**
 * Created by IME on 2016/1/16.
 */
public class GreenDaoGenerator {
    public static void main(String[] args) throws Exception {
        Schema schema = new Schema(1, "com.green.dao");
        Entity entity = schema.addEntity("Demand");
        entity.addIdProperty().autoincrement().primaryKey();
        entity.addStringProperty("stContent");
        entity.addStringProperty("stBg");
        entity.addStringProperty("stTime");
        entity.addStringProperty("stAddress");
        entity.addStringProperty("stPersonNum");
        entity.addStringProperty("stLabel");
        entity.addStringProperty("stPid");
        new DaoGenerator().generateAll(schema, "../Demand/app/src/main/java-gen");
    }
}
